home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 4
/
FM Towns Free Software Collection 4 - Disc 1.iso
/
msdos
/
cdd
/
cdd.c
next >
Wrap
Text File
|
1991-10-18
|
326b
|
24 lines
#include <string.h>
#include <stdio.h>
#include <dir.h>
#include <ctype.h>
main(int argc,char* argv[])
{
int a;
char c[32];
if(argc != 2)
{
puts("cdd [drive:]pathname");
exit(1);
}
strcpy(c,argv[1]);
if (c[1] == ':')
{
c[0] = toupper(c[0]);
a = c[0]-'A';
setdisk(a);
}
chdir(c);
}